import { defHttp } from '/@/utils/http/axios';

enum Foundation {
  getroleSimple = '/admin-api/system/role/list-all-simple',
  getDeptSimple = '/admin-api/system/dept/list',
  getPostSimple = '/admin-api/system/post/list-all-simple',
  getUserSimple = '/admin-api/system/user-project/getProjectUser',
  getUserGroupSimple = '/admin-api/bpm/user-group/list-all-simple',
  getProjectSimple = '/admin-api/system/project/list-all-simple',
  getdistinctUser = '/admin-api/system/user-project/list-distinct-user',
}

enum Dict {
  getmodelTyleList = '/admin-api/system/dict-data/list',
}

/**
 * @description: 基础数据用法
 */
export const roleSimple = (params: any) => {
  return defHttp.get<any>({ url: Foundation.getroleSimple, params });
};
export const deptSimple = (params: any) => {
  return defHttp.get<any>({ url: Foundation.getDeptSimple, params });
};
export const postSimple = (params: any) => {
  return defHttp.get<any>({ url: Foundation.getPostSimple, params });
};
export const userSimple = (params: any) => {
  return defHttp.get<any>({ url: Foundation.getUserSimple, params });
};
export const userGroupSimple = (params: any) => {
  return defHttp.get<any>({ url: Foundation.getUserGroupSimple, params });
};
export const projectSimple = (params: any) => {
  return defHttp.get<any>({ url: Foundation.getProjectSimple, params });
};
export const getdistinctUser = (params: any) => {
  return defHttp.get<any>({ url: Foundation.getdistinctUser, params });
};
/**
 * @description: 字典
 */
export const getModelList = (params: any) => {
  return defHttp.get<any>({ url: Dict.getmodelTyleList, params });
};
